Ext.define('AmpleHarvest.objects.counter.main',
{
    extend          : 'Ext.panel.Panel',
    alias           : 'widget.ampleharvest-objects-counter-main',
    // TODO: add classification handling using the following event
//  bubbleEvents    :
//  [
//      'doclassificationchange'
//  ],
    html			: 'loading...',
    border			: 0,
    listeners       :
    {
    	loadData	: function(obj_data)
    	{
    		this.obj_template.overwrite(this.body,obj_data);
    	}
    },
    
    initComponent   : function()
    {
    	this.m_obj_util = Ext.create('AmpleHarvest.util.utility');
		
	    this.obj_template = Ext.create('Ext.Template', this.arr_tpl);
	
		this.obj_template.compile();

        this.callParent();
        
        this.m_obj_util.AHcaller = this.AHcaller;
		this.m_obj_util.listenerName = 'handleCounterResponse';

		this.m_obj_util.getData(this.str_data_source, {},{},'GET', { obj_response_tgt : this }, {});
        
    }
});


